/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package arkanoid;

import javax.ejb.LocalBean;
import javax.ejb.Remove;
import javax.ejb.Stateful;
import p3as.cliente.Drawable;


@Stateful
@LocalBean
public class PhaseBean{
    private int currentPhase = 0;
       
    public Drawable nextPhase(){
        Drawable drawable;
        DBPhase dbPhase = new DBPhase();
        currentPhase++;
        drawable = dbPhase.loadPhase((currentPhase % 4));
        return drawable;
    }
     
    @Remove
    public void finish(){}
}
